package Java8实战._2_Stream_使用流._2_映射;


import java.util.Arrays;
import java.util.List;

public class _1_对流中每一个元素应用函数2 {

    public static void main(String[] args) {

        List<String> list = Arrays.asList("Java 8","Lambda","In","Action");

        list.stream()
                .map(String::length)
                .forEach(System.out::println);



    }



}
